import request from '@/utils/request'

// 查询理财产品定义列表
export function listFinanceProducts(query) {
  return request({
    url: '/loan/financeProducts/list',
    method: 'get',
    params: query
  })
}

// 查询理财产品定义详细
export function getFinanceProducts(financeProductsId) {
  return request({
    url: '/loan/financeProducts/' + financeProductsId,
    method: 'get'
  })
}

// 新增理财产品定义
export function addFinanceProducts(data) {
  return request({
    url: '/loan/financeProducts',
    method: 'post',
    data: data
  })
}

// 修改理财产品定义
export function updateFinanceProducts(data) {
  return request({
    url: '/loan/financeProducts',
    method: 'put',
    data: data
  })
}

// 删除理财产品定义
export function delFinanceProducts(financeProductsId) {
  return request({
    url: '/loan/financeProducts/' + financeProductsId,
    method: 'delete'
  })
}
